<template>
	<div class="perent_page">
		<!-- 引入子组件 定义一个on的方法监听子组件的状态-->
		<child v-on:childByValue="childByValue"></child>
		<h3>我是父组件</h3>
		<mt-field label="子传来的值" placeholder="" disabled v-model="receiveValue"></mt-field>
	</div>

</template>

<script>
	import {Field} from 'mint-ui';
	import child from './children.vue';
	export default {
		components:{Field,child},
		data(){
			return{
				receiveValue:'',
			}
		},
		methods:{
			childByValue(childByValue) {
				this.receiveValue = childByValue;
			}
		}
	}

</script>

<style>
	

</style>